﻿<%@ Page Language="C#"  MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="MantPopUps.aspx.cs" Inherits="WC.UI.WebApp.MantPopUps" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Maestro Perú - Clientes</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMainHeader" runat="server">
  
    <asp:Panel ID="pnl_PopUp1" runat="server" Height="200px" Width="450px" CssClass="modalPopup">
        <asp:Panel ID="pnlTitulo" runat="server" CssClass="modalPopupTitle">
            Mantenimiento de PopUps
        </asp:Panel>
        <br />
        <div class="modalPopupBody">
            <table  style="width: 100%;">
                <tr><td>Ramo(sector)</td>
                    <td colspan="3">
                        <asp:DropDownList ID="ddlRamoFiltro" runat="server"  
                            DataTextField="Descripcion" DataValueField="Codigo" />
                    </td>
                </tr>
                <tr>
                    <td>T&iacute;tulo</td>
                    <td colspan="3">
                        <asp:TextBox ID="txtTituloI" runat="server" Height="19px" Width="304px" />
                    </td>
                </tr>
                <tr><td>V&aacute;lido desde:</td>
                    <td colspan="3">
                        <asp:TextBox ID="txtFInicio" runat="server" Width="70" />
                        <cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtFInicio"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        &nbsp;
                        hasta:
                        &nbsp;
                        <asp:TextBox ID="txtFFin" runat="server" Width="70" />
                        <cc1:CalendarExtender ID="CalendarExtender4" runat="server" 
                            CssClass="MyCalendar" Format="dd/MM/yyyy" TargetControlID="txtFFin" />
                    </td>
                </tr>
                <tr>
                    <td>Imagen</td>
                    <td colspan="3">
                        <input ID="flimage" runat="server" name="flimage" type="file" />
                    </td>
                </tr>
            </table>
            <br />
            <asp:Button ID="btnGrabarI" runat="server" Text="Grabar" OnClick="btnGrabarI_Click" />
            &nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="Cancelar" OnClick="btnCancel_Click" />
        </div>
    </asp:Panel>
                
    <input ID="btnVer_aux" runat="server" style="visibility: hidden;" type="text" />
    <cc1:ModalPopupExtender ID="mpePopUp1" runat="server" BackgroundCssClass="modalBackground" 
        CancelControlID="btnCancel" Enabled="True" PopupControlID="pnl_PopUp1" 
        PopupDragHandleControlID="pnlTitulo" TargetControlID="btnVer_aux" />

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMainBody" runat="server">

    <div style="width: 905px; text-align:left;">
        <table style="width: 100%;">
            <tr>
                <th colspan="2">Mantenimiento de PopUp</th>
            </tr>
            <tr><td colspan="2">&nbsp;</td></tr>
            <tr>
                <td colspan="2" style="background-color: #FFFBD6;">
                    &nbsp;
                    <asp:ImageButton ID="ibtnBuscar" runat="server" 
                        ImageUrl="~/img/find.png" OnClick="ibtnBuscar_Click" />
                    &nbsp;
                    <asp:ImageButton ID="btnAdd" runat="server"  AlternateText="Nuevo" 
                        OnClick="btnSetUpdt_OnClick" ImageUrl="~/img/addItem.png" Width="16px" />
                    &nbsp;
                    <asp:ImageButton ID="ibtnBorrar" runat="server" Height="16px" 
                        ImageUrl="~/img/del.png" onclick="btnSetUpdt_OnClick" Width="16px" />
                </td>
            </tr>
            <tr><td colspan="2">&nbsp;</td></tr>
            <tr>
                <td style="width:12%;">T&iacute;tulo:</td>
                <td><asp:TextBox ID="txtTitulo" runat="server" Width="301px" /></td>
            </tr>
            <tr>
                <td>V&aacute;lido desde:</td>
                <td>
                    <asp:TextBox ID="txtFechaInicio" runat="server" Width="70" />
                    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFechaInicio"
                        Format="dd/MM/yyyy" CssClass="MyCalendar" />
                    &nbsp;hasta:&nbsp;
                    <asp:TextBox ID="txtFechaFin" runat="server" Width="70" />
                    <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFechaFin"
                        Format="dd/MM/yyyy" CssClass="MyCalendar" />
                    &nbsp;&nbsp;
                </td>
            </tr>
            <tr><td colspan="2">&nbsp;</td></tr>
        </table>
        <br />

        <asp:GridView ID="cgvPopUp" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron resultados para la búsqueda."
            OnRowCommand="cgvPopUp_RowCommand" Width="100%">
            <Columns>
                <asp:ButtonField  ButtonType="Image" CommandName="Editar" ImageUrl="~/img/edit.png" DataTextField="Popup_id">
                    <HeaderStyle HorizontalAlign="Center" Width="25px"></HeaderStyle>
                </asp:ButtonField>
                <asp:BoundField DataField="Titulo" HeaderText="Titulo">
                    <HeaderStyle Width="180px" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Fechai" HeaderText="Fecha Inicial">
                    <HeaderStyle Width="100px" HorizontalAlign="Center"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Fechaf" HeaderText="Fecha Final">
                    <HeaderStyle Width="100px" HorizontalAlign="Center"></HeaderStyle>
                    <ItemStyle  HorizontalAlign="Center" ></ItemStyle>
                </asp:BoundField>
            </Columns>
            <AlternatingRowStyle CssClass="gvAltItem" />
            <HeaderStyle CssClass="gvHeader" />
        </asp:GridView>
    </div>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphMainFooter" runat="server">
</asp:Content>
